package com.hina.rec.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Redis键枚举
 *
 * @author baofu
 * @date 2024-04-01
 */
@Getter
@AllArgsConstructor
public enum RedisKeyEnum {

    /**
     * 示例
     */
    REC_KEY("hina:rec:", "xxxx"),;

    /**
     * 编码
     */
    private final String code;

    /**
     * 描述
     */
    private final String desc;

    /**
     * 获取完整键
     */
    public static String getKey(RedisKeyEnum keyEnum) {
        return keyEnum.getCode();
    }
} 